POV-Ray : Newsgroups : povray.newusers : Problem with 'object' errors? : Re: Problem with 'object' errors? Server Time
4 Nov 2024 17:30:38 EST (-0500)
  Re: Problem with 'object' errors?  
From: Lutz-Peter Hooge
Date: 16 Jun 2003 03:07:40
Message: <3eed6cbc$1@news.povray.org>
Jessie K. Blair <jbl### [at] earthlinknet> wrote:

> This is a little more towards my understanding... However, I'm not sure I
> understand why there would be a limitation on the objects in a macro.

There isn't. The problem is not with the objects IN your macro, it is with 
the object inside wich the macro is called.

Wrong:
#macro foo()
	sphere{0,1}
	sphere{0,2}
#end
object{foo()}

Correct:
#macro foo()
	sphere{0,1}
	sphere{0,2}
#end
union{foo()}

Also correct:
#macro foo()
union{
	sphere{0,1}
	sphere{0,2}
}
#end
object{foo()}

Lutz-Peter


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.